package cn.exrick.xboot.modules.your.serviceimpl;

import cn.exrick.xboot.modules.your.dao.mapper.MalfunctionMapper;
import cn.exrick.xboot.modules.your.entity.Malfunction;
import cn.exrick.xboot.modules.your.service.IMalfunctionService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 陪护床接口实现
 * @author chenyunxuan
 */
@Slf4j
@Service
@Transactional
public class IMalfunctionServiceImpl extends ServiceImpl<MalfunctionMapper, Malfunction> implements IMalfunctionService {

    @Autowired
    private MalfunctionMapper malfunctionMapper;

    @Override
    public IPage<Malfunction> malfunctionPage(Page initMpPage, QueryWrapper<Malfunction> qw) {
        return malfunctionMapper.malfunctionPage(initMpPage,qw);
    }
}